from django.contrib import admin

from .models import Comments
import xadmin
# Register your models here.


class CommentsAdmin(object):
    list_display = ['comments_type', 'comments_author', 'comments_create_time', 'comments_desc']
    search_fields = ['comments_type', 'comments_author', 'comments_desc']
    list_filter = ['comments_type', 'comments_author', 'comments_create_time', 'comments_desc']

xadmin.site.register(Comments, CommentsAdmin)